import Vue from 'vue'
import VueRouter from 'vue-router'
import Movie from "../views/movie.vue"
import Vdieo from "../views/vdieo.vue"
import Smalvdieo from "../views/smallvdieo.vue"
import Show from "../views/show.vue"
import Mine from "../views/mine.vue"
import Hot from "../views/hot.vue"
import Cinema from "../views/cinema.vue"
import Wait from "../views/wait.vue"
import Classic from "../views/classic.vue"
import Xiangqing from "../views/xiangqing.vue"
import Tiket from "../views/tiket.vue"
import Showxiangqing from "../views/showxiangqing.vue"

// import Showoder from "../views/showoder.vue"

Vue.use(VueRouter)


const routes = [{
        path: '/movie',
        name: 'Movie',
        component: Movie,
        children: [{
                path: '/hot',
                name: 'Hot',
                component: Hot
            },
            {
                path: '/cinema',
                name: 'Cinema',
                component: Cinema
            },
            {
                path: '/wait',
                name: 'Wait',
                component: Wait
            },
            {
                path: '/classic',
                name: 'Classic',
                component: Classic
            },
            {
                path: '/',
                redirect: '/hot'
            }

        ]
    },
    {
        path: '/vdieo',
        name: 'Vdieo',
        component: Vdieo
    },
    {
        path: '/smallvdieo',
        name: 'Smalvdieo',
        component: Smalvdieo
    },
    {
        path: '/show',
        name: 'Show',
        component: Show
    },
    // {
    //     path: '/showoder',
    //     name: 'Showoder',
    //     component: Showoder
    // },
    {
        path: '/mine',
        name: 'Mine',
        component: Mine
    },
    {
        path: '/xiangqing',
        name: 'Xiangqing',
        component: Xiangqing
    },
    {
        path: '/showxiangqing',
        name: 'Showxiangqing',
        component: Showxiangqing
    },
    {
        path: '/tiket',
        name: 'Tiket',
        component: Tiket
    },
    {
        path: '/',
        redirect: '/movie'
    }
]

const router = new VueRouter({

    base: process.env.BASE_URL,
    routes
})

export default router